package com.example.demo.service.impl;

import com.example.demo.entity.*;
import com.example.demo.mapper.FixedInvestmentMapper;
import com.example.demo.service.FixedInvestmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FixedInvestmentServiceImpl implements FixedInvestmentService {
    @Resource
    FixedInvestmentMapper fixedInvestmentMapper;
    @Override
    public List<MinFixedInvestment> getFixedInvestmentByIndicators(int year, String indicators) {
        return fixedInvestmentMapper.findFixedInvestmentByIndicators(year, indicators);
    }
    @Override
    public List<SubDistrictTownFixedInvestment> getAllSubDistrictTownFixedInvestment(int year, int month) {
        return fixedInvestmentMapper.findAllSubDistrictTownFixedInvestment(year, month);
    }
    @Override
    public List<SubDistrictTownIndustrialInvestment> getAllSubDistrictTownIndustrialInvestment(int year, int month){
        return fixedInvestmentMapper.findAllSubDistrictTownIndustrialInvestment(year, month);
    }
}
